import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
  entries: ['src/index.ts', 'src/middleware/index.ts', 'src/adapter/index.ts', 'src/utils'],
  outDir: 'dist',
  declaration: true,
  clean: true,
  rollup: {
    emitCJS: true,
    output: {
    },
    cjsBridge: true,
    inlineDependencies: true,
  },
  externals: ['vite', 'Buffer'],
})
